Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix text overflow in toast #17547

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Conversation

pkdotson
Copy link
Member

SUMMARY

The pr fixes an issue where the toast text, if very long, will overflow out of the container.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

before
Screen Shot 2021-11-24 at 2 06 33 PM

after
Screen Shot 2021-11-24 at 2 08 09 PM

TESTING INSTRUCTIONS

Go to any of the listviews and add an item with a very long name and delete the item and ensure that the text breaks within the toast.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@codecov
Copy link

codecov bot commented Nov 29, 2021

Codecov Report

Merging #17547 (df999bc) into master (9576478) will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17547      +/-   ##
==========================================
+ Coverage   77.00%   77.01%   +0.01%     
==========================================
  Files        1049     1049              
  Lines       56588    56615      +27     
  Branches     7825     7847      +22     
==========================================
+ Hits        43574    43602      +28     
  Misses      12760    12760              
+ Partials      254      253       -1     
Flag Coverage Δ
javascript 71.12% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...nd/src/components/MessageToasts/ToastPresenter.tsx 100.00% <ø> (ø)
...set-frontend/src/components/ListViewCard/index.tsx 98.18% <0.00%> (-1.82%) ⬇️
...rontend/src/views/CRUD/dashboard/DashboardList.tsx 71.14% <0.00%> (-1.09%) ⬇️
...frontend/src/dashboard/components/Header/index.jsx 68.64% <0.00%> (-0.21%) ⬇️
...perset-frontend/src/views/CRUD/chart/ChartList.tsx 74.21% <0.00%> (-0.15%) ⬇️
superset-frontend/src/views/CRUD/hooks.ts 52.76% <0.00%> (ø)
superset-frontend/src/views/CRUD/types.ts 100.00% <0.00%> (ø)
superset-frontend/src/components/ListView/types.ts 100.00% <0.00%> (ø)
...perset-frontend/src/views/CRUD/chart/ChartCard.tsx 75.60% <0.00%> (ø)
...rontend/src/views/CRUD/dashboard/DashboardCard.tsx 77.77% <0.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9576478...df999bc. Read the comment docs.

Copy link
Member

@geido geido left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, ty!

@pkdotson pkdotson merged commit 4e76637 into apache:master Nov 30, 2021
@rusackas rusackas deleted the fix-toast-text branch December 2, 2021 15:58
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.5.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels preset-io size/XS 🚢 1.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants